package com.thinkverse.user.util;

import java.security.SecureRandom;

public class RandomCodeUtil {
    private static final SecureRandom RANDOM = new SecureRandom();
    public static String generateNumericCode(int length) {
        StringBuilder sb = new StringBuilder(length);
        for (int i=0;i<length;i++) {
            sb.append(RANDOM.nextInt(10));
        }
        return sb.toString();
    }
}
